import service from "@/utils/request.js";

export const researchersApi = {
    list(){
        return service.get('researchers/list');
    },
    selectById(researcherId){
        return service.get(`researchers/selectById/${researcherId}`);
    },
    login(researchers){
        return service.post(`/researchers/login`,researchers)
    },
    researchersInfo(){
        return service.get(`/researchers/info`)
    },
    update(researchers){
        return service.put(`/researchers/update`,researchers)
    }
}